<template>
  <div>
    <div class="geren">
      <div class="mingzi">
        <div class="mingzi1">{{uname}}</div>
        <div class="mingzi2">我的积分：0</div>
      </div>
      <div class="touxiang">
        <img src="/img/1.jpeg">
      </div>
    </div>
    <div class="geren1">
      <div class="shezhi1">
       <van-icon class="tupiao1" name="calendar-o" />
       <div class="wenzi1" @click="shoucang">我的收藏</div>
      </div>
      <div class="shezhi2">
        <van-icon class="tupiao2" name="warn-o" />
        <div class="wenzi2">我的错题</div>
      </div>
      <div class="shezhi3">
        <van-icon class="tupiao3" name="points" />
        <div class="wenzi3">我的资产</div>
      </div>
      <div class="shezhi4">
       <van-icon class="tupiao4" name="setting-o" />
        <div class="wenzi4">个人设置</div>
      </div>
    </div>
  </div>
</template>
<style scoped>
.geren{
  margin-top: 40px;
  height: 130px;
  background-color: rgb(88, 88, 146);
  position: relative;
}
.mingzi{
  height: 100px;
  width: 150px;
  left: 50px;
  top: 50px;
  position: absolute;
}
.mingzi1{
  position: absolute;
  left: 20px;
  top: 10px;
  font-weight: 400px;
  font-size: 17px;
  color: #050505;
}
.mingzi2{
  position: absolute;
  top: 50px;
  left: 20px;
  color: #000000;
}
.touxiang{
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border:solid wheat 2px;
  right: 20px;
  top: 20px;
}
.touxiang img{
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.geren1{
  height: 350px;
  position: relative;
}
.shezhi1{
  position: absolute;
  width: 100%;
  height: 30px;
  border-top: 1px outset rgb(221, 210, 210);
  border-bottom: 1px outset rgb(221, 210, 210);
}
.shezhi2{
  position: absolute;
  width: 100%;
  height: 30px;
  top: 30px;
  border-top: 1px outset rgb(221, 210, 210);
  border-bottom: 1px outset rgb(221, 210, 210);
}
.shezhi3{
  position: absolute;
  width: 100%;
  height: 30px;
  top: 60px;
  border-top: 1px outset rgb(221, 210, 210);
  border-bottom: 1px outset rgb(221, 210, 210);
}
.shezhi4{
  position: absolute;
  width: 100%;
  height: 30px;
  top: 90px;
  border-top: 1px outset rgb(221, 210, 210);
  border-bottom: 1px outset rgb(221, 210, 210);
}
.tupiao1{
  position: absolute;
  left: 20px;
  top: 7px;
}
.tupiao2{
  position: absolute;
  left: 20px;
  top: 7px;
}
.tupiao3{
  position: absolute;
  left: 20px;
  top: 7px;
}
.tupiao4{
  position: absolute;
  left: 20px;
  top: 7px;
}
.wenzi1{
  position: absolute;
  left: 40px;
  top: 3px;
  font-size: 18px;
}
.wenzi2{
  position: absolute;
  left: 40px;
  top: 3px;
  font-size: 18px;
}
.wenzi3{
  position: absolute;
  left: 40px;
  top: 3px;
  font-size: 18px;
}
.wenzi4{
  position: absolute;
  left: 40px;
  top: 3px;
  font-size: 18px;
}
</style>
<script>
export default {
  data() {
    return {
      activeName: "a",
      uname:'zhangsan2',
      aid:[],
      length:0
    };
  },
  mounted(){
    //获取当前用户名
    let uname = this.$route.query.uname;
    // console.log(`uname:${uname}`);
    if(uname!==undefined){
      this.uname=uname;
    }
    
    // console.log(this.uname);
  },
  methods:{
    shoucang(){
      this.$router.push('/shoucang');
    }
  }
};
</script>
